package com.emperor.report.app;

import java.util.Map;

import org.apache.log4j.Logger;

import com.emperor.core.app.App;
import com.emperor.core.app.AppCtrl;

public class ReportAppCtrl implements AppCtrl {

	public static final String REPORT_CTRL = "report.ctrl";
	public static final String REPORT_ENQ = "report.enq";
	
	public static Logger log = Logger.getLogger(ReportAppCtrl.class);
	
	@Override
	public void doProcess(Map<String, Object> params) {
		App app = null;
		if (params == null) {
			log.error("Param is null");
		} else {
			app = new ReportAppEnq(params);
		}
		
		if (app != null) {
			app.open();
		}
	}
	
}
